﻿package idv.cjcat.shintaz.compiler {
	import idv.cjcat.shintaz.compiler.parser.Parser;
	import idv.cjcat.shintaz.compiler.scanner.IScanner;
	import idv.cjcat.shintaz.compiler.scanner.Scanner;
	
	public class Compiler {
		
		public function Compiler() {
			
		}
		
		public function compile(code:String):Array {
			var scanner:IScanner = new Scanner(code);
			var parser:Parser = new Parser();
			return parser.parse(scanner);
		}
	}
}